package cn.edu.scau.cmi.linhongyu.comprehensiveExperiment;
import java.net.URL;
import java.util.ResourceBundle;

import cn.edu.scau.cmi.linhongyu.client.MultitionClient;
import cn.edu.scau.cmi.linhongyu.client.SingletonClient;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Stage;


public class ComprehensiveExperimentController {

    @FXML
    private ResourceBundle resources;

    @FXML
    private URL location;

    @FXML
    private Button AbstractFactory;

    @FXML
    private Button ConsistentComposite;

    @FXML
    private Button Factory;

    @FXML
    private Button Hibernate;

    @FXML
    private Button HibernateSpring;
    
    @FXML
    private Button Adapter;
    
    @FXML
    private Button Multition;

    @FXML
    private Button SafeComposite;

    @FXML
    private Button SimpleFactoryMethod;

    @FXML
    private Button Singleton;

    @FXML
    void Adapter(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.Adapter window = new cn.edu.scau.cmi.linhongyu.client.Adapter();
    	window.start(new Stage());
    }
    
    @FXML
    void AbstractFactory(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.AbstractFactory window = new cn.edu.scau.cmi.linhongyu.client.AbstractFactory();
    	window.start(new Stage());
    }

    @FXML
    void ConsistentCompositeClient(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client. ConsistentCompositeClient window = new cn.edu.scau.cmi.linhongyu.client. ConsistentCompositeClient();
    	window.start(new Stage());
    }

    @FXML
    void Factory(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.Factory window = new cn.edu.scau.cmi.linhongyu.client.Factory();
    	window.start(new Stage());
    }

    @FXML
    void Hibernate(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.HibernateClient window = new cn.edu.scau.cmi.linhongyu.client.HibernateClient();
    	window.start(new Stage());
    }

    @FXML
    void HibernateSpring(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.HibernateSpringClient window = new cn.edu.scau.cmi.linhongyu.client.HibernateSpringClient();
    	window.start(new Stage());
    }

    @FXML
    void Multition(ActionEvent event) {
    	MultitionClient window = new MultitionClient();
    	window.start(new Stage());
    }

    @FXML
    void SafeComposite(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.SafeCompositeClient window = new cn.edu.scau.cmi.linhongyu.client.SafeCompositeClient();
    	window.start(new Stage());
    }

    @FXML
    void SimpleFactoryMethod(ActionEvent event) {
    	cn.edu.scau.cmi.linhongyu.client.SimpleFactoryMethod window = new cn.edu.scau.cmi.linhongyu.client.SimpleFactoryMethod();
    	window.start(new Stage());
    }

    @FXML
    void Singleton(ActionEvent event) {
    	SingletonClient window = new SingletonClient();
    	window.start(new Stage());
    }

    @FXML
    void initialize() {
    }

}
